DEMO 1: In this interactive activity, you'll see how variables can store and reuse "strings".

  • Click Run and answer the questions in the text bubble that appears. Notice that your entries appear on stage.
  • The variable before each question stores a "string" that does not get read or interpreted by the program.
  • Follow the instructions on the stage to complete the activity. Then click Submit and Next to continue.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)